import React from 'react';

module.exports = [
  {
    key:'id',
    title:'',
    dataType:'varchar',
    primary : true,
    width: 0,
    className: 'disnon-table',
    render: () => {
    }
  },
  {
    key:'merChantId',
    title:'商户号',
    dataType:'varchar',
  },
  {
    key:'userName',
    title:'对接用户',
    dataType:'varchar',
  },
  {
    key:'pfxPath',
    title:'私钥证书路径',
    dataType:'varchar',
  },
  {
    key:'tltcerPath',
    title:'公钥证书路径',
    dataType:'varchar',
  },
  {
    key:'level',
    title:'商户等级',
    dataType:'varchar',
  },
  {
    key:'dataType',
    title:'商户数据格式',
    dataType:'varchar',
  },
  {
    key:'version',
    title:'商户版本',
    dataType:'varchar',
  },
  {
    key:'defaultMer',
    title:'默认选中商户',
    dataType:'varchar',
    render: (text) => {
      let showText = '';
      switch (text) {
        case 1:
          showText = '默认';
          break;
        case 0:
          showText = '非默认';
          break;
      
        default:
          break;
      }
      return <span>{showText}</span>
    }
  },
  {
    key:'type',
    title:'类型',
    dataType:'varchar',
    render: (text) => {
      let showText = '';
      switch (text) {
        case 0:
          showText = '测试';
          break;
        case 1:
          showText = '正式';
          break;
      
        default:
          break;
      }
      return <span>{showText}</span>
    }
  },
];
